import instance from './request'


export const getsza = (params) => {
    console.log(params, 'show me params++++')
    return instance({
        url: 'http://121.5.255.87:5000/getsza',
        method: 'POST',
        data: params

    })


}


export const getszatotal = (params) => {
    return instance({
        url: 'http://121.5.255.87:5000/getszatotal',
        method: 'POST',
        data: params

    })
}

export const getindex = () => {
    return instance({
        url: 'https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/examples/data/asset/data/stock-DJI.json',
        method: 'GET',
    })
}

export const getstockindex = (params) => {
    return instance({
        url: `http://www.hsingdu.com:3000/quotes_service/api/json_v2.php/CN_MarketData.getKLineData?symbol=sz${params}&scale=60&ma=no&datalen=1023`,
        method: 'GET',
    })
}





export default { getsza, getszatotal }